<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>layui</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
		<link rel="stylesheet" href="__CSS__/admin.css" media="all">
		<style type="text/css">
			/* tooltip */
		    #tooltip{
		      position:absolute;
		      border:1px solid #ccc;
		      background:#333;
		      padding:2px;
		      display:none;
		      color:#fff;
		    }
			
			.layui-btn-danger {
				background-color: #2BB6F6;
			} 
		</style>
	</head>

	<body style="padding:10px;">
		<div class="tplay-body-div">
			<div class="layui-tab">
				<ul class="layui-tab-title">
					<li class="layui-this"><a href="{:url('admin/member/meal')}" class="a_menu">套餐列表</a></li>
					<li><a href="{:url('admin/member/mealadd')}" class="a_menu">新增套餐</a></li>
				</ul>
			</div>
			<form class="layui-form serch" action="{:url('admin/member/meal')}" method="post">
				<div class="layui-form-item" style="float: left;">
					<div class="layui-input-inline">
						<div class="layui-inline">
							<div class="layui-input-inline">
								<input autocomplete="off" type="text" class="layui-input" id="create_time" placeholder="创建时间范围" name="start_time" value="{$start_time}">
							</div>
						</div>
					</div>
					<div class="layui-input-inline" style="width: 10px;">
						<fieldset class="layui-elem-field layui-field-title"></fieldset>
					</div>
					<div class="layui-input-inline">
						<div class="layui-inline">
							<div class="layui-input-inline">
								<input type="text" autocomplete="off" class="layui-input" id="end_time" placeholder="创建时间范围" name="end_time" value="{$end_time}">
							</div>
						</div>
					</div>
					<button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="serch">查询</button>
				</div>
			</form>
			<table class="layui-table" lay-size="sm">
				<colgroup>
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100"> 
				</colgroup>
				<thead>
					<tr> 
						<th>实际支付现金</th>
						<th>会员实际获得金额</th> 
						<th>创建时间</th> 
						<th>操作</th> 
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr> 
						<td>{$vo.money}</td>
						<td>{$vo.balance}</td> 
						<td>{$vo.add_time}</td> 
						<td>
							<a href="{:url('admin/member/mealedit',['id'=>$vo.id])}" style="font-size:12px;color: #2BB6F6;">设置</a> 
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div style="padding:0 20px;">{$list->render()}</div>

			{include file="public/foot"}
		</div>
	</body>

</html>
<script>
	   layui.use('laydate', function(){
	        var laydate = layui.laydate;
	      
		    //常规用法
		    laydate.render({
		        elem: '#end_time'
		    });
	    });
</script>